package com.luych.toolbox.docker.service.sdk.network.model;

import com.fasterxml.jackson.annotation.JsonProperty;

public class DockerNetworkConnectParam {

    @JsonProperty("Container")
    private String container;

    @JsonProperty("EndpointConfig")
    private EndpointConfig endpointConfig;

    public String getContainer() {
        return container;
    }

    public void setContainer(String container) {
        this.container = container;
    }

    public EndpointConfig getEndpointConfig() {
        return endpointConfig;
    }

    public void setEndpointConfig(EndpointConfig endpointConfig) {
        this.endpointConfig = endpointConfig;
    }

    public static class EndpointConfig {

        @JsonProperty("IPAMConfig")
        private IPAMConfig iPAMConfig;

        public IPAMConfig getiPAMConfig() {
            return iPAMConfig;
        }

        public void setiPAMConfig(IPAMConfig iPAMConfig) {
            this.iPAMConfig = iPAMConfig;
        }

        public static class IPAMConfig {

            @JsonProperty("IPv6Address")
            private String iPv6Address;

            @JsonProperty("IPv4Address")
            private String iPv4Address;

            public String getiPv6Address() {
                return iPv6Address;
            }

            public void setiPv6Address(String iPv6Address) {
                this.iPv6Address = iPv6Address;
            }

            public String getiPv4Address() {
                return iPv4Address;
            }

            public void setiPv4Address(String iPv4Address) {
                this.iPv4Address = iPv4Address;
            }
        }
    }
}